package com.clouddisk.file.observer.impl;

import com.clouddisk.file.observer.FileOperationEvent;
import com.clouddisk.file.observer.FileOperationListener;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class LogFileOperationListener implements FileOperationListener {
    @Override
    public void onFileOperation(FileOperationEvent event) {
        log.info("文件操作: {} - 用户ID: {} - 文件: {}", 
                event.getOperation(), 
                event.getUserId(), 
                event.getFile().getFileName());
    }
} 